package MetroLab.Train;

/**
 *
 * @author plus
 */
public class TrainDesc {
    static final int TYPE_A=1,TYPE_B=2, TYPE_C=3;
    String Name, Band,Desc;
    int Type, Carriages, DefaultLine,DoorsPerCarriage;

    public TrainDesc(String Name, String Band,String Desc, int Type, int Carriages, int DefaultLine) {
        this.Name = Name;
        this.Band = Band;
        this.Type = Type;
        this.Desc = Desc;
        this.Carriages = Carriages;
        this.DefaultLine = DefaultLine;
        switch (Type){
            case TYPE_A:
                DoorsPerCarriage=5;
                break;
            case TYPE_B:
                DoorsPerCarriage=4;
                break;
            case TYPE_C:
                DoorsPerCarriage=4;
                break;
        }
    }
    
    
}
